﻿using LD.Model;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static ScottPlot.Generate;

namespace LD.Quartz
{
    public class ExportWipJob : IJob
    {
        Task IJob.Execute(IJobExecutionContext context)
        {
            return ExportData();
        }
        public Task ExportData()
        {
            return Task.Run(() =>
            {
                //查询wip表;
                TB_WIP result = DBHelper.Instance.Sql.Queryable<TB_WIP>().First();
                ExcelHelper.Save(result);
            });
        }
    }
}
